﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Uber.Core.Model.Post>" %>
<%@ Import Namespace="Uber.WebUI" %>
<%@ Import Namespace="Uber.WebUI.Controllers" %>
<div>
    <div class="userinfo ib">
        <img src="<%=Ui.GravatarUrlSmall(Model.Owner.Email) %>" alt="owner" />
        <div class="ib vt">
            <%:Model.Owner.DisplayName %>
        </div>  
        <div class="ib vt">
        <%= Model.ParentId == null ? "asked" : "answered" %>
            
            <%=Ui.DateAgo(Model.CreationDate) %>
        </div>
    </div>
    <div class="ib qbox vt">
       <% if(Gl.Allow(Model.OwnerId)) {%> 
       <a href='javascript:edit("<%=Model.Id %>")'>edit</a> | <a class="dell" href="">delete</a>
       <%}%>
       </div>
</div>
